package mylibrary.io;

import java.io.File;
import java.io.FilenameFilter;

public class DirList2 {

	public static FilenameFilter filter(String regex) {
		return new FilenameFilter(){							//匿名内部类
			public boolean accept(File dir, String name) {
				
				return true;
			}
		};
	}
	
	public static void main(String[] args) {
		//do....
	}
}
